import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/index',
    component: () => import('@/views/index.vue'),
    children: [
      {
        path: 'user',
        components: {
          default: () => import('@/views/userbook/User.vue'),
          breadcrumbitem1: () => import('@/views/indexitem.vue'),
          breadcrumbitem2: () => import('@/views/userbook/useritem.vue')
        }
      },
    
      {
        path: '',
        components: {
          default: () => import('@/views/indexhy.vue')
        }

      }
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/login/Index.vue')
  },
  {
    path:'/regist',
    component: () => import('@/views/regist/Index.vue')
  },
  {
    path: '/',
    component: () => import('@/views/login/Index.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router